import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';

import 'provider/index.dart';
import 'router/index.dart';

class MyApp extends StatelessWidget with WidgetsBindingObserver {
  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    print('$state');
    super.didChangeAppLifecycleState(state);
  }

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    Router router = Router();
    Routes.configureRoutes(router);
    return ProviderModel(
      child: MaterialApp(
        title: '酷我音乐',
        theme: ThemeData(primaryColor: Color(0xffffe443)),
        onGenerateRoute: router.generator,
      ),
    );
  }
}
